package com.neu.yth.nepBackend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 * 空气质量监测数据统计表
 * </p>
 *
 * @author YTH
 * @since 2024-05-31
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("statistics")
@ApiModel(value = "Statistics对象", description = "空气质量监测数据统计表")
public class Statistics implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("统计信息编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("所属省市区域")
    @TableField("province")
    private String province;


    @ApiModelProperty("反馈信息所在区域详细地址")
    @TableField("address")
    private String address;

    @ApiModelProperty("实测二氧化硫浓度值")
    @TableField("so2_value")
    private Double so2Value;

    @ApiModelProperty("空气二氧化硫指数级别")
    @TableField("so2_level")
    private Integer so2Level;

    @ApiModelProperty("实测空气一氧化碳浓度值")
    @TableField("co_value")
    private Double coValue;

    @ApiModelProperty("空气一氧化碳指数级别")
    @TableField("co_level")
    private Integer coLevel;

    @ApiModelProperty("实测空气悬浮颗粒物浓度值")
    @TableField("spm_value")
    private Double spmValue;

    @ApiModelProperty("空气pm2.5指数级别")
    @TableField("spm_level")
    private Integer spmLevel;

    @ApiModelProperty("实测空气质量指数级别")
    @TableField("aqi_id")
    private Integer aqiId;

    @ApiModelProperty("反馈信息确认时间")
    @TableField("confirm_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date confirmDate;

    @ApiModelProperty("所属网格员id")
    @TableField("gm_id")
    private Integer gmId;

    @ApiModelProperty("反馈者（公众监督员）id")
    @TableField("fd_id")
    private Integer fdId;

    @ApiModelProperty("反馈信息描述")
    @TableField("information")
    private String information;

    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;

    @TableField("afId")
    private Integer afId;

}
